package com.nine.demo.factory;

import com.nine.demo.service.SmsService;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class SmsHandleFactory {

    public Map<String, SmsService> handlerMap = new ConcurrentHashMap<>();

    /**
     * 创建处理类对象
     *
     * @param code code
     * @return ISmsService
     */
    public SmsService createSmsService(String code) {
        return handlerMap.get(code);
    }

}
